// Decompiled by Jad v1.5.8e2. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://kpdus.tripod.com/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi space 
// Source File Name:   TeamArenaBtn.java

package com.tool.btn;

import java.awt.Color;
import java.awt.Font;
import java.awt.event.MouseEvent;
import org.come.Jpanel.TeamArenaMainJpanel;
import org.come.socket.Agreement;
import org.come.socket.SendMessageUntil;

// Referenced classes of package com.tool.btn:
//			MoBanBtn

public class TeamArenaBtn extends MoBanBtn
{

	private int caozuo;
	private TeamArenaMainJpanel teamArenaMainJpanel;

	public TeamArenaBtn(String iconpath, int type, Color colors[], Font font, String text, int caozuo, TeamArenaMainJpanel teamArenaMainJpanel)
	{
		super(iconpath, type, colors);
		setText(text);
		setFont(font);
		setVerticalTextPosition(0);
		setHorizontalTextPosition(0);
		this.caozuo = caozuo;
		this.teamArenaMainJpanel = teamArenaMainJpanel;
	}

	public TeamArenaBtn(String iconpath, int type, Color colors[], Font font, String text)
	{
		super(iconpath, type, colors);
		setText(text);
		setFont(font);
		setVerticalTextPosition(0);
		setHorizontalTextPosition(0);
	}

	@Override
    public void chooseyes()
	{
	}

	@Override
    public void chooseno()
	{
	}

	@Override
    public void nochoose(MouseEvent e)
	{
		if (caozuo == 1)
		{
			String sendmes = Agreement.getAgreement().teamArenaAgreement("A");
			SendMessageUntil.toServer(sendmes);
		} else
		if (caozuo == 2)
		{
			String sendmes = Agreement.getAgreement().teamArenaAgreement("D");
			SendMessageUntil.toServer(sendmes);
		}
		if(caozuo == 3){
			String sendmes = Agreement.getAgreement().laddArenaAgreement("A");
			SendMessageUntil.toServer(sendmes);
		}else if(caozuo == 4){
			String sendmes = Agreement.getAgreement().laddArenaAgreement("D");
			SendMessageUntil.toServer(sendmes);
		}
	}
}
